package com.binc.testspring.rabbitmq.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 第一个消息接收者
 */
@Component
// @RabbitListener(queues = "queue1")
public class RecieveA {

    //@RabbitHandler 来实现具体消费
    @RabbitHandler
    public void queueRecieve(String queue1){
        System.out.println("queue1 消息到达："+queue1);
    }
}

